package com.yt.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyAspect implements MethodInterceptor{

	public Object invoke(MethodInvocation invocation) throws Throwable {
		
		System.out.println("before");
		Object obj = invocation.proceed();
		System.out.println("after");
		return obj;
	}
		
}
